﻿using System;
using System.Collections.Generic;
using KKSG;
using MiniJSON;
using UILib;
using UnityEngine;
using XMainClient.UI;
using XUpdater;
using XUtliPoolLib;

namespace XMainClient
{
	// Token: 0x02000CE8 RID: 3304
	internal class GamePayDiaMallHander : DlgHandlerBase
	{
		// Token: 0x1700328B RID: 12939
		// (get) Token: 0x0600B8FC RID: 47356 RVA: 0x00256E00 File Offset: 0x00255000
		public uint VipLevel
		{
			get
			{
				return 0U;
			}
		}

		// Token: 0x0600B8FD RID: 47357 RVA: 0x00256E14 File Offset: 0x00255014
		protected override void Init()
		{
			this._Doc = XDocuments.GetSpecificDocument<XRechargeDocument>(XRechargeDocument.uuID);
			this._Doc.RechargeView = this;
			this.m_NextVipTip = (base.transform.Find("Bg/UpView/Tip").GetComponent("XUILabel") as IXUILabel);
			this.m_CurrVipLevel = (base.transform.Find("Bg/UpView/vipicon1/Level1").GetComponent("XUILabel") as IXUILabel);
			this.m_NextVipLevel = (base.transform.Find("Bg/UpView/vipicon2/Level2").GetComponent("XUILabel") as IXUILabel);
			this.m_NextVip = base.transform.Find("Bg/UpView/vipicon2");
			this.m_VipProgressValue = (base.transform.Find("Bg/UpView/Progress").GetComponent("XUILabel") as IXUILabel);
			this.m_VipProgress = (base.transform.Find("Bg/UpView/ProgressBar").GetComponent("XUIProgress") as IXUIProgress);
			this.m_SwitchBtn = (base.transform.Find("Bg/UpView/SwitchBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_SwitchLabel = (base.transform.Find("Bg/UpView/SwitchBtn/Label").GetComponent("XUILabel") as IXUILabel);
			this.m_SwitchRedPoint = this.m_SwitchBtn.gameObject.transform.Find("RedPoint").gameObject;
			this.m_RechargeScrollView = (base.transform.Find("Bg/RechargeFrame/Scroll View").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_RechargeItemList = (base.transform.Find("Bg/RechargeFrame/Scroll View/Grid").GetComponent("XUIList") as IXUIList);
			Transform transform = base.transform.Find("Bg/RechargeFrame/Scroll View/Grid/TplCard");
			bool flag = transform != null;
			if (flag)
			{
				transform.gameObject.SetActive(false);
			}
			Transform transform2 = base.transform.Find("Bg/RechargeFrame/Scroll View/Grid/TplDiamond");
			this.m_RechargeDiamondPool.SetupPool(transform2.parent.parent.gameObject, transform2.gameObject, 8U, false);
			Transform transform3 = base.transform.Find("Bg/VipFrame/Tabs/Tpl");
			this.m_TabTool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 10U, false);
			this.m_TabScrollView = (base.transform.Find("Bg/VipFrame/Tabs").GetComponent("XUIScrollView") as IXUIScrollView);
			transform3 = base.transform.Find("Bg/VipFrame/RightView/DescScrollView/Tpl");
			this.m_DescPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 10U, false);
			transform3 = base.transform.Find("Bg/VipFrame/RightView/Item/Tpl");
			this.m_ItemPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 8U, false);
			this.m_GetBtn = (base.transform.Find("Bg/VipFrame/RightView/GetBtn").GetComponent("XUISprite") as IXUISprite);
			this.m_GetBtnLabel = (this.m_GetBtn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel);
			this.m_GetBtnRedPoint = this.m_GetBtn.gameObject.transform.Find("RedPoint").gameObject;
			this.m_ViewLevel = (base.transform.Find("Bg/VipFrame/RightView/Name/Level").GetComponent("XUILabel") as IXUILabel);
			this.VIPFrame = base.transform.Find("Bg/VipFrame").gameObject;
			this.RechargeFrame = base.transform.Find("Bg/RechargeFrame").gameObject;
			this._CustomerService = (base.transform.Find("CustomerService").GetComponent("XUIButton") as IXUIButton);
			this._wifiBtn = (base.transform.Find("wifi").GetComponent("XUIButton") as IXUIButton);
		}

		// Token: 0x0600B8FE RID: 47358 RVA: 0x002571FC File Offset: 0x002553FC
		public override void RegisterEvent()
		{
			this.m_SwitchBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchBtnClick));
			this.m_GetBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetGiftBtnClick));
			this._CustomerService.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCustomClick));
			this._wifiBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWifiClick));
		}

		// Token: 0x0600B8FF RID: 47359 RVA: 0x0025726C File Offset: 0x0025546C
		protected override void OnShow()
		{
			base.OnShow();
			this._wifiBtn.SetVisible(XSingleton<XGameSysMgr>.singleton.IsSystemOpened(XSysDefine.XSys_3GFree));
			this.SetVipProgressInfo(this._Doc.VipLevel);
			this.m_RechargeScrollView.ResetPosition();
			this._Doc.ReqPayAllInfo();
			this.SetSwitchState();
		}

		// Token: 0x0600B900 RID: 47360 RVA: 0x002572CC File Offset: 0x002554CC
		public void SetSwitchState()
		{
			this.VIPFrame.SetActive(this._Doc.isVIPShow);
			this.RechargeFrame.SetActive(!this._Doc.isVIPShow);
			bool isVIPShow = this._Doc.isVIPShow;
			if (isVIPShow)
			{
				this.m_SwitchLabel.SetText(XStringDefineProxy.GetString("RechargeBtnText"));
			}
			else
			{
				this.m_SwitchLabel.SetText(XStringDefineProxy.GetString("VIPBtnText"));
			}
			this.m_SwitchRedPoint.SetActive(!this._Doc.isVIPShow && this._Doc.CalVipRedPoint());
			this.RefreshVIP();
			this.RefreshDatas();
		}

		// Token: 0x0600B901 RID: 47361 RVA: 0x00257380 File Offset: 0x00255580
		protected override void OnHide()
		{
			this._Doc.isVIPShow = false;
			XSingleton<UiUtility>.singleton.DestroyTextureInActivePool(this.m_RechargeDiamondPool, "Icon");
			for (int i = 0; i < this.m_EffectCache.Count; i++)
			{
				XSingleton<XFxMgr>.singleton.DestroyFx(this.m_EffectCache[i], true);
			}
			this.m_EffectCache.Clear();
		}

		// Token: 0x0600B902 RID: 47362 RVA: 0x002573F0 File Offset: 0x002555F0
		public void SetVipProgressInfo(uint currVipLevel)
		{
			this.m_CurrVipLevel.SetText(string.Format(XSingleton<XStringTable>.singleton.GetString("PAY_VIP_LEVEL"), currVipLevel));
			this.m_NextVipTip.SetText(this._Doc.IsMaxVip(currVipLevel) ? XSingleton<XStringTable>.singleton.GetString("PAY_VIP_MAX_TIP") : string.Format(XSingleton<XStringTable>.singleton.GetString("PAY_NEXT_VIP_TIP"), this._Doc.LackMoneyToNextVipLevel(currVipLevel), currVipLevel + 1U));
			this.m_NextVipLevel.SetText(this._Doc.IsMaxVip(currVipLevel) ? "" : string.Format(XSingleton<XStringTable>.singleton.GetString("PAY_VIP_LEVEL"), currVipLevel + 1U));
			this.m_NextVip.gameObject.SetActive(!this._Doc.IsMaxVip(currVipLevel));
			float num = this._Doc.TotalPay - this._Doc.GetVipRMB(currVipLevel);
			uint num2 = this._Doc.GetVipRMB(currVipLevel + 1U) - this._Doc.GetVipRMB(currVipLevel);
			float value = (num2 == 0U) ? 0f : (this._Doc.IsMaxVip(currVipLevel) ? 1f : (num / num2));
			this.m_VipProgress.value = value;
			this.m_VipProgressValue.SetText(string.Format("{0}/{1}", num, num2));
			this.m_VipProgressValue.gameObject.SetActive(!this._Doc.IsMaxVip(currVipLevel));
		}

		// Token: 0x0600B903 RID: 47363 RVA: 0x00257584 File Offset: 0x00255784
		public void RefreshDatas()
		{
			bool isVIPShow = this._Doc.isVIPShow;
			if (!isVIPShow)
			{
				this.m_RechargeDiamondPool.FakeReturnAll();
				for (int i = 0; i < XRechargeDocument.PayTable.Table.Length; i++)
				{
					GameObject gameObject = this.m_RechargeDiamondPool.FetchGameObject(false);
					gameObject.transform.parent = this.m_RechargeItemList.gameObject.transform;
					gameObject.transform.localScale = Vector3.one;
					IXUIButton ixuibutton = gameObject.transform.GetComponent("XUIButton") as IXUIButton;
					ixuibutton.ID = (ulong)((long)i);
					ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPayItemClick));
					this.RefreshDiamondItem(gameObject, XRechargeDocument.PayTable.Table[i]);
				}
				this.m_RechargeItemList.Refresh();
				this.m_RechargeDiamondPool.ActualReturnAll(false);
			}
		}

		// Token: 0x0600B904 RID: 47364 RVA: 0x00257670 File Offset: 0x00255870
		private bool OnCustomClick(IXUIButton btn)
		{
			Dictionary<string, string> dictionary = new Dictionary<string, string>();
			RuntimePlatform platform = Application.platform;
			if (platform != RuntimePlatform.IPhonePlayer)
			{
				if (platform != RuntimePlatform.Android)
				{
					XSingleton<XDebug>.singleton.AddGreenLog("CustomerService-Mall", null, null, null, null, null);
				}
				else
				{
					dictionary["url"] = XSingleton<XGlobalConfig>.singleton.GetValue("CustomerServiceRechargeAndroid");
					dictionary["screendir"] = "SENSOR";
					XSingleton<XUpdater.XUpdater>.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary));
				}
			}
			else
			{
				dictionary["url"] = XSingleton<XGlobalConfig>.singleton.GetValue("CustomerServiceRechargeApple");
				dictionary["screendir"] = "SENSOR";
				XSingleton<XUpdater.XUpdater>.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary));
			}
			return true;
		}

		// Token: 0x0600B905 RID: 47365 RVA: 0x00257748 File Offset: 0x00255948
		private bool OnWifiClick(IXUIButton btn)
		{
			AdditionRemindDocument specificDocument = XDocuments.GetSpecificDocument<AdditionRemindDocument>(AdditionRemindDocument.uuID);
			specificDocument.Open3GWebPage();
			return true;
		}

		// Token: 0x0600B906 RID: 47366 RVA: 0x00257770 File Offset: 0x00255970
		private bool OnPayCardClick(IXUIButton btn)
		{
			int num = (int)btn.ID;
			List<PayCardTable.RowData> payCardList = this._Doc.GetPayCardList();
			bool flag = num < payCardList.Count;
			if (flag)
			{
				XRechargeDocument specificDocument = XDocuments.GetSpecificDocument<XRechargeDocument>(XRechargeDocument.uuID);
				bool flag2 = XSingleton<XUpdater.XUpdater>.singleton.XPlatform.Platfrom() == XPlatformType.Android;
				if (flag2)
				{
					specificDocument.SDKSubscribe(payCardList[num].Price, 1, payCardList[num].ServiceCode, payCardList[num].Name, payCardList[num].ParamID, PayParamType.PAY_PARAM_CARD);
				}
				else
				{
					bool flag3 = XSingleton<XUpdater.XUpdater>.singleton.XPlatform.Platfrom() == XPlatformType.IOS;
					if (flag3)
					{
						int buyNum = (payCardList[num].Type == 1) ? 7 : 30;
						specificDocument.SDKSubscribe(payCardList[num].Price, buyNum, payCardList[num].ServiceCode, payCardList[num].Name, payCardList[num].ParamID, PayParamType.PAY_PARAM_CARD);
					}
				}
			}
			return true;
		}

		// Token: 0x0600B907 RID: 47367 RVA: 0x00257878 File Offset: 0x00255A78
		private bool OnPayItemClick(IXUIButton btn)
		{
			int num = (int)btn.ID;
			bool flag = num < XRechargeDocument.PayTable.Table.Length;
			if (flag)
			{
				PayListTable.RowData rowData = XRechargeDocument.PayTable.Table[num];
				XRechargeDocument specificDocument = XDocuments.GetSpecificDocument<XRechargeDocument>(XRechargeDocument.uuID);
				specificDocument.SDKRecharge(rowData.Price, rowData.ParamID, PayParamType.PAY_PARAM_LIST);
			}
			return true;
		}

		// Token: 0x0600B908 RID: 47368 RVA: 0x002578D8 File Offset: 0x00255AD8
		public void RefreshDiamondItem(GameObject item, PayListTable.RowData data)
		{
			IXUISprite ixuisprite = item.transform.Find("Recommend").GetComponent("XUISprite") as IXUISprite;
			IXUISprite ixuisprite2 = item.transform.Find("FirstDouble").GetComponent("XUISprite") as IXUISprite;
			IXUISprite ixuisprite3 = item.transform.Find("FirstHalf").GetComponent("XUISprite") as IXUISprite;
			IXUILabel ixuilabel = item.transform.Find("Price").GetComponent("XUILabel") as IXUILabel;
			IXUILabel ixuilabel2 = item.transform.Find("Name").GetComponent("XUILabel") as IXUILabel;
			IXUILabel ixuilabel3 = item.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel;
			IXUITexture ixuitexture = item.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture;
			ixuitexture.SetTexturePath(data.Icon);
			bool flag = data.Effect != "";
			if (flag)
			{
				Transform parent = item.transform.Find("Icon");
				XFx item2 = XSingleton<XFxMgr>.singleton.CreateUIFx(data.Effect, parent, false);
				this.m_EffectCache.Add(item2);
			}
			bool flag2 = data.Effect2 != "";
			if (flag2)
			{
				XFx item3 = XSingleton<XFxMgr>.singleton.CreateUIFx(data.Effect2, item.transform, false);
				this.m_EffectCache.Add(item3);
			}
			ixuisprite.SetAlpha(0f);
			ixuilabel.SetText(string.Format(XSingleton<XStringTable>.singleton.GetString("PAY_UNIT"), (float)data.Price / 100f));
			ixuilabel2.SetText(data.Name);
			ixuisprite2.SetAlpha(0f);
			ixuisprite3.SetAlpha(0f);
			ixuilabel3.SetVisible(false);
			XRechargeDocument specificDocument = XDocuments.GetSpecificDocument<XRechargeDocument>(XRechargeDocument.uuID);
			PayMarketingInfo payMarketingInfo;
			bool flag3 = specificDocument.FirstPayMarketingInfo.TryGetValue(data.Diamond, out payMarketingInfo);
			if (flag3)
			{
				bool flag4 = payMarketingInfo.sendCount == data.Diamond;
				if (flag4)
				{
					ixuisprite2.SetAlpha(1f);
				}
				else
				{
					bool flag5 = payMarketingInfo.sendCount == data.Diamond / 2;
					if (flag5)
					{
						ixuisprite3.SetAlpha(1f);
					}
					else
					{
						ixuilabel3.SetVisible(payMarketingInfo.sendCount > 0);
						ixuilabel3.SetText(payMarketingInfo.sendCount.ToString());
					}
				}
			}
		}

		// Token: 0x0600B909 RID: 47369 RVA: 0x00257B68 File Offset: 0x00255D68
		public bool OnSwitchBtnClick(IXUIButton sp)
		{
			this._Doc.isVIPShow = !this._Doc.isVIPShow;
			this.SetSwitchState();
			return true;
		}

		// Token: 0x0600B90A RID: 47370 RVA: 0x00257B9C File Offset: 0x00255D9C
		public void OnGetGiftBtnClick(IXUISprite btn)
		{
			bool flag = this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.UNABLE || this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.GET;
			if (flag)
			{
				bool flag2 = this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.UNABLE;
				if (flag2)
				{
					XSingleton<UiUtility>.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("VIPGiftGetUnableTips"), this.CurrentClick), "fece00");
				}
				else
				{
					XSingleton<UiUtility>.singleton.ShowSystemTip(XStringDefineProxy.GetString("VIPGiftGetGetTips"), "fece00");
				}
			}
			else
			{
				this._Doc.SendGetVIPGiftQuery(this.CurrentClick);
			}
		}

		// Token: 0x0600B90B RID: 47371 RVA: 0x00257C5C File Offset: 0x00255E5C
		public void RefreshVIP()
		{
			bool flag = !this._Doc.isVIPShow;
			if (!flag)
			{
				this.CurrentClick = (int)this._Doc.VipLevel;
				for (int i = 0; i < this._Doc.IsGiftGet.Count; i++)
				{
					bool flag2 = this._Doc.IsGiftGet[i] == VIPGiftState.UNGET;
					if (flag2)
					{
						this.CurrentClick = i;
						break;
					}
				}
				this.RefreshVIPTabs();
				this.RefreshVIPView();
			}
		}

		// Token: 0x0600B90C RID: 47372 RVA: 0x00257CE0 File Offset: 0x00255EE0
		private void RefreshVIPTabs()
		{
			this.m_TabTool.ReturnAll(false);
			List<GameObject> list = new List<GameObject>();
			this._redPointList.Clear();
			IXUIPanel ixuipanel = this.m_TabTool._tpl.transform.parent.GetComponent("XUIPanel") as IXUIPanel;
			int num = this.CurrentClick;
			bool flag = false;
			bool flag2 = (float)(this.m_TabTool.TplHeight * (this._Doc.IsGiftGet.Count - this.CurrentClick)) < ixuipanel.ClipRange.w;
			if (flag2)
			{
				num = 0;
				flag = true;
			}
			IXUICheckBox ixuicheckBox = null;
			for (int i = 0; i < this._Doc.IsGiftGet.Count; i++)
			{
				GameObject gameObject = this.m_TabTool.FetchGameObject(false);
				gameObject.transform.localPosition = new Vector3(this.m_TabTool.TplPos.x, this.m_TabTool.TplPos.y - (float)(this.m_TabTool.TplHeight * (i - num)), 0f);
				bool flag3 = !flag && i < this.CurrentClick;
				if (flag3)
				{
					gameObject.SetActive(false);
					list.Add(gameObject);
				}
				IXUILabel ixuilabel = gameObject.transform.Find("Text/T").GetComponent("XUILabel") as IXUILabel;
				ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("VIPTabsShow"), i));
				GameObject gameObject2 = gameObject.transform.Find("RedPoint").gameObject;
				this._redPointList.Add(gameObject2);
				gameObject2.SetActive(this._Doc.IsGiftGet[i] == VIPGiftState.UNGET);
				IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox;
				ixuicheckBox2.ID = (ulong)((long)i);
				ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabsClick));
				bool flag4 = i == this.CurrentClick;
				if (flag4)
				{
					ixuicheckBox = ixuicheckBox2;
				}
			}
			this.m_TabScrollView.ResetPosition();
			bool flag5 = flag;
			if (flag5)
			{
				bool flag6 = this.CurrentClick != 0;
				if (flag6)
				{
					this.m_TabScrollView.SetPosition(1f);
				}
			}
			else
			{
				for (int j = 0; j < list.Count; j++)
				{
					list[j].SetActive(true);
				}
			}
			bool flag7 = ixuicheckBox != null;
			if (flag7)
			{
				ixuicheckBox.bChecked = true;
			}
		}

		// Token: 0x0600B90D RID: 47373 RVA: 0x00257F6C File Offset: 0x0025616C
		private void RefreshVIPView()
		{
			this.m_ViewLevel.SetText(this.CurrentClick.ToString());
			VIPTable.RowData byVIP = this._Doc.VIPReader.GetByVIP(this.CurrentClick);
			this.RefreshGiftState(this.CurrentClick);
			this.m_DescPool.ReturnAll(false);
			bool flag = byVIP.VIPTips != null;
			if (flag)
			{
				for (int i = 0; i < byVIP.VIPTips.Length; i++)
				{
					GameObject gameObject = this.m_DescPool.FetchGameObject(false);
					Vector3 tplPos = this.m_DescPool.TplPos;
					gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(this.m_DescPool.TplHeight * i), 0f);
					IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel;
					ixuilabel.SetText(byVIP.VIPTips[i]);
				}
			}
			this.m_ItemPool.ReturnAll(false);
			List<DropList.RowData> list = new List<DropList.RowData>();
			List<ChestList.RowData> list2;
			bool flag2 = XBagDocument.TryGetChestListConf(byVIP.ItemID, out list2);
			if (flag2)
			{
				int j = 0;
				int count = list2.Count;
				while (j < count)
				{
					ChestList.RowData rowData = list2[j];
					bool flag3 = !XBagDocument.IsProfMatchedFeable((uint)rowData.Profession, XItemDrawerParam.DefaultProfession, false);
					if (!flag3)
					{
						bool flag4 = XBagDocument.TryGetDropConf(rowData.DropID, ref list);
						if (flag4)
						{
							int k = 0;
							int count2 = list.Count;
							while (k < count2)
							{
								ItemList.RowData itemConf = XBagDocument.GetItemConf(list[k].ItemID);
								GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false);
								Vector3 tplPos2 = this.m_ItemPool.TplPos;
								gameObject2.transform.localPosition = new Vector3(tplPos2.x + (float)(this.m_ItemPool.TplWidth * k), tplPos2.y, 0f);
								XSingleton<XItemDrawerMgr>.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, list[k].ItemCount, false);
								XSingleton<XItemDrawerMgr>.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, list[k].ItemID);
								k++;
							}
						}
					}
					j++;
				}
			}
		}

		// Token: 0x0600B90E RID: 47374 RVA: 0x002581CC File Offset: 0x002563CC
		public void RefreshGiftState(int level)
		{
			bool flag = this._Doc.IsGiftGet.Count == 0;
			if (!flag)
			{
				this.SetGetBtnState(this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.UNGET);
				bool flag2 = this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.GET;
				if (flag2)
				{
					this.m_GetBtnLabel.SetText(XStringDefineProxy.GetString("SRS_FETCHED"));
				}
				else
				{
					bool flag3 = (ulong)this._Doc.VipLevel >= (ulong)((long)level);
					if (flag3)
					{
						this.m_GetBtnLabel.SetText(XStringDefineProxy.GetString("SRS_FETCH"));
					}
					else
					{
						this.m_GetBtnLabel.SetText(string.Format(XStringDefineProxy.GetString("VIPGiftGetBtnUnableTips"), level));
					}
				}
				this._redPointList[level].SetActive(this._Doc.IsGiftGet[level] == VIPGiftState.UNGET);
			}
		}

		// Token: 0x0600B90F RID: 47375 RVA: 0x002582C1 File Offset: 0x002564C1
		private void SetGetBtnState(bool state)
		{
			this.m_GetBtnRedPoint.SetActive(state);
			this.m_GetBtn.SetGrey(state);
		}

		// Token: 0x0600B910 RID: 47376 RVA: 0x002582E0 File Offset: 0x002564E0
		public bool OnTabsClick(IXUICheckBox iSp)
		{
			bool flag = !iSp.bChecked;
			bool result;
			if (flag)
			{
				result = true;
			}
			else
			{
				this.CurrentClick = (int)iSp.ID;
				this.RefreshVIPView();
				result = true;
			}
			return result;
		}

		// Token: 0x04004988 RID: 18824
		public GameObject VIPFrame;

		// Token: 0x04004989 RID: 18825
		public GameObject RechargeFrame;

		// Token: 0x0400498A RID: 18826
		public IXUILabel m_NextVipTip;

		// Token: 0x0400498B RID: 18827
		public IXUILabel m_CurrVipLevel;

		// Token: 0x0400498C RID: 18828
		public IXUILabel m_NextVipLevel;

		// Token: 0x0400498D RID: 18829
		public Transform m_NextVip;

		// Token: 0x0400498E RID: 18830
		public IXUILabel m_VipProgressValue;

		// Token: 0x0400498F RID: 18831
		public IXUIProgress m_VipProgress;

		// Token: 0x04004990 RID: 18832
		public IXUIButton m_SwitchBtn;

		// Token: 0x04004991 RID: 18833
		public IXUILabel m_SwitchLabel;

		// Token: 0x04004992 RID: 18834
		public GameObject m_SwitchRedPoint;

		// Token: 0x04004993 RID: 18835
		public IXUIList m_RechargeItemList;

		// Token: 0x04004994 RID: 18836
		public IXUIScrollView m_RechargeScrollView;

		// Token: 0x04004995 RID: 18837
		public XUIPool m_RechargeDiamondPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		// Token: 0x04004996 RID: 18838
		public IXUIButton _CustomerService;

		// Token: 0x04004997 RID: 18839
		public IXUIButton _wifiBtn;

		// Token: 0x04004998 RID: 18840
		public XUIPool m_TabTool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		// Token: 0x04004999 RID: 18841
		public IXUIScrollView m_TabScrollView;

		// Token: 0x0400499A RID: 18842
		public XUIPool m_DescPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		// Token: 0x0400499B RID: 18843
		public XUIPool m_ItemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		// Token: 0x0400499C RID: 18844
		public IXUISprite m_GetBtn;

		// Token: 0x0400499D RID: 18845
		public IXUILabel m_GetBtnLabel;

		// Token: 0x0400499E RID: 18846
		public GameObject m_GetBtnRedPoint;

		// Token: 0x0400499F RID: 18847
		public IXUILabel m_ViewLevel;

		// Token: 0x040049A0 RID: 18848
		private List<XFx> m_EffectCache = new List<XFx>();

		// Token: 0x040049A1 RID: 18849
		private XRechargeDocument _Doc;

		// Token: 0x040049A2 RID: 18850
		public int CurrentClick = 0;

		// Token: 0x040049A3 RID: 18851
		private List<GameObject> _redPointList = new List<GameObject>();
	}
}
